package com.sino.operation.service;

import com.sino.operation.commons.ConstantValue;

/**
 * @Title: Exec_Util
 * @Description: 集中记账工具
 * @Author dengls
 * @date 2021/11/2 18:51
 */
public class Exec_Util {

    /**
     * 获取汇兑各个岗位对应任务剩余时间
     * @param currentPost
     * @return
     */
    public static String getRetTimeByPost(String currentPost) {
        if (currentPost != null) {
            if ("201".equals(currentPost)) {
                return ConstantValue.POST_ACCEPT_TIME_EXCHANGE;
            } else if ("202".equals(currentPost)) {
                return ConstantValue.POST_INPUT_TIME_EXCHANGE;
            } else if ("205".equals(currentPost)) {
                return ConstantValue.POST_AUDITING_TIME_EXCHANGE;
            } else if ("204".equals(currentPost)) {
                return ConstantValue.POST_CHECK_TIME_EXCHANGE;
            } else if ("210".equals(currentPost) || "200".equals(currentPost)) {
                return ConstantValue.POST_CHECK_TIME_EXCHANGE;
            } else if ("211".equals(currentPost)) {
                return ConstantValue.POST_CHECK_TIME_EXCHANGE;
            } else if ("203".equals(currentPost)) {
                return ConstantValue.POST_AUTHORIZE1_TIME_EXCHANGE;
            } else if ("206".equals(currentPost)) {
                return ConstantValue.POST_AUTHORIZE2_TIME_EXCHANGE;
            }
        }
        return "";
    }

    /**
     * 获取开户各个岗位对应任务剩余时间
     * @param currentPost
     * @return
     */
    public static String getAccountRetTimeByPost(String currentPost) {
        if (currentPost != null) {
            if ("201".equals(currentPost)) {
                return ConstantValue.POST_ACCEPT_TIME;
            } else if ("202".equals(currentPost)) {
                return ConstantValue.POST_INPUT_TIME;
            } else if ("205".equals(currentPost)) {
                return ConstantValue.POST_AUDITING_TIME;
            } else if ("204".equals(currentPost)) {
                return ConstantValue.POST_CHECK_TIME;
            } else if ("210".equals(currentPost)) {
                return ConstantValue.POST_CHECK_TIME;
            } else if ("211".equals(currentPost)) {
                return ConstantValue.POST_CHECK_TIME;
            } else if ("203".equals(currentPost)) {
                return ConstantValue.POST_AUTHORIZE1_TIME;
            } else if ("206".equals(currentPost)) {
                return ConstantValue.POST_AUTHORIZE2_TIME;
            }
        }
        return "";
    }

}
